//package com.zt.questionnaire.common.config.redis;
//
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.boot.context.properties.ConfigurationProperties;
//import org.springframework.context.annotation.Configuration;
//
//@ConfigurationProperties(prefix = "redis")
//@Configuration
//public class JedisRedisConfig {
//
//    private String host;
//    @Value("${redis.password}")
//    private String password;
//    @Value("${redis.port}")
//    private int port;
//    @Value("${redis.timeout}")
//    private int timeout;
//    @Value("${redis.jedis.pool.max-idle}")
//    private int maxIdle;
//    @Value("${redis.jedis.pool.max-wait}")
//    private long maxWaitMillis;
//
//    public void setHost(String host) {
//        this.host = host;
//    }
////
////    @Bean
////    JedisConnectionFactory jedisConnectionFactory() {
////        JedisConnectionFactory factory = new JedisConnectionFactory();
////        factory.setHostName(host);
////        factory.setPort(port);
////        factory.setTimeout(timeout);
////        factory.setPassword(password);
////        return factory;
////    }
////    @Bean
////    public JedisPool redisPoolFactory() {
////        JedisPoolConfig jedisPoolConfig = new JedisPoolConfig();
////        jedisPoolConfig.setMaxIdle(maxIdle);
////        jedisPoolConfig.setMaxWaitMillis(maxWaitMillis);
////
////        JedisPool jedisPool = new JedisPool(jedisPoolConfig, host, port, timeout, password);
////        return jedisPool;
////    }
//}
